package com.recruit.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.recruit.common.mybatis.Page;
import com.recruit.model.HonorRoll;
import com.recruit.mapper.HonorRollMapper;
import com.recruit.service.IHonorRollService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jikun
 * @since 2024-04-16
 */
@Service
public class HonorRollServiceImpl extends ServiceImpl<HonorRollMapper, HonorRoll> implements IHonorRollService {

    @Override
    public IPage<HonorRoll> getHonorPage(Integer page, Integer count) {
        Page<HonorRoll> pager = new Page<>(page,count);
        LambdaQueryWrapper<HonorRoll> lq = new LambdaQueryWrapper<>();
        IPage<HonorRoll> honorRollPage = this.baseMapper.selectPage(pager,lq);
        return honorRollPage;
    }
}
